package cn.zebra.dev.admin.module.product.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
public class ProductCategoryVO {

    @ApiModelProperty("分类级别")
    @NotNull(message = "请输入分类的级别")
    @Min(value = 1,message = "输入有误，分类级别最高为1")
    @Max(value = 3,message = "输入有误，分类级别最低为3")
    private Integer levelType;

    @ApiModelProperty(value = "上层分类id")
    private Long superStratum;

    @ApiModelProperty("分类名")
    @NotBlank(message = "分类名不能为空!")
    private String categoryName;

    @ApiModelProperty("分类图")
    private String categoryImage;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("是否显示")
    private Boolean showFlag = Boolean.TRUE;
}
